package com.kwlt.smc.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 	通道
 * @author wangweiheng
 */

@Entity
@Table(name="USER_CHANNEL")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class UserChannel {
	/**
	 * 用户通道Id
	 */
	private Long userChannelId;
	/**
	 * 通道Id 
	 */
	private Long channelId;
	/**
	 * 用户Id
	 */
	private Long userId;
	/**
	 * 权重比例
	 */
	private Long weight;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getUserChannelId() {
		return userChannelId;
	}
	public void setUserChannelId(Long userChannelId) {
		this.userChannelId = userChannelId;
	}
	public Long getChannelId() {
		return channelId;
	}
	public void setChannelId(Long channelId) {
		this.channelId = channelId;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public Long getWeight() {
		return weight;
	}
	public void setWeight(Long weight) {
		this.weight = weight;
	}
	public UserChannel() {
		super();
	}
	
}
